﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search.aspx.cs" Inherits="AnyOffice.general.attend.manage.search" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>上下班记录查询</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
	</HEAD>
	<body class="bodycolor" topMargin="5">
		<form id="Form1" method="post" runat="server">
			<asp:literal id="litNavTitle" runat="server"></asp:literal>
			<!------------------------------------- 上下班 ------------------------------->
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/attendance.gif" align="absMiddle"><span class="big3"> 上下班统计</span><br>
					</td>
				</tr>
			</table>
			<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3">
				<tr class="TableHeader">
					<td nowrap align="center">全勤(天)</td>
					<td nowrap align="center">迟到</td>
					<td nowrap align="center">上班未登记</td>
					<td nowrap align="center">早退</td>
					<td nowrap align="center">下班未登记</td>
					<td nowrap align="center">操作</td>
				</tr>
				<tr class="TableData">
					<td nowrap align="center">
						<asp:Literal id="litAllNum" runat="server"></asp:Literal></td>
					<td nowrap align="center">
						<asp:Literal id="litLaterNum" runat="server"></asp:Literal></td>
					<td nowrap align="center">
						<asp:Literal id="litUpNum" runat="server"></asp:Literal></td>
					<td nowrap align="center">
						<asp:Literal id="litBeforeNum" runat="server"></asp:Literal></td>
					<td nowrap align="center">
						<asp:Literal id="litDownNum" runat="server"></asp:Literal></td>
					<td nowrap align="center"><a href="user_duty.aspx?user_id=<%=ViewState["UserId"]%>&date1=<%=ViewState["Date1"]%>&date2=<%=ViewState["Date2"]%>">详细记录</a></td>
				</tr>
			</table>
			<br>
			<!------------------------------------- 外出记录 ------------------------------->
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/attendance.gif" align="absMiddle"><span class="big3"> 外出记录</span><br>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptOut" runat="server">
				<HeaderTemplate>
					<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3"
						align="center">
						<tr class="TableHeader">
							<td nowrap align="center">外出原因</td>
							<td nowrap align="center">外出日期</td>
							<td nowrap align="center">外出时间</td>
							<td nowrap align="center">归来时间</td>
							<td nowrap align="center">审批人员</td>
							<td nowrap align="center">状态</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableData">
						<td nowrap align="center"><%#Eval("OutType")%></td>
						<td nowrap align="center"><%#Convert.ToDateTime(Eval("OutTime1").ToString()).ToString("yyyy-MM-dd")%></td>
						<td nowrap align="center"><%#Convert.ToDateTime(Eval("OutTime1").ToString()).ToString("HH:ss")%></td>
						<td nowrap align="center"><%#Convert.ToDateTime(Eval("OutTime2").ToString()).ToString("HH:ss")%></td>
						<td nowrap align="center"><%#Eval("UserName")%></td>
						<td nowrap align="center"><%#Convert.ToInt32(Eval("Status").ToString()) == 0 ? "外出" : "已归来" %>
					</tr>
				</ItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litOut" runat="server"></asp:Literal>
			<br>
			<!------------------------------------- 请假记录 ------------------------------->
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/attendance.gif" align="absMiddle"><span class="big3"> 请假记录</span><br>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptLeave" runat="server">
				<HeaderTemplate>
					<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3"
						align="center">
						<tr class="TableHeader">
							<td nowrap align="center">请假原因</td>
							<td nowrap align="center">开始日期</td>
							<td nowrap align="center">结束日期</td>
							<td nowrap align="center">审批人员</td>
							<td nowrap align="center">状态</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableData">
						<td nowrap align="center"><%#Eval("LeaveType")%></td>
						<td nowrap align="center"><%#Convert.ToDateTime(Eval("LeaveDate1").ToString()).ToString("yyyy-MM-dd")%></td>
						<td nowrap align="center"><%#Convert.ToDateTime(Eval("LeaveDate2").ToString()).ToString("yyyy-MM-dd")%></td>
						<td nowrap align="center"><%#Eval("UserName")%></td>
						<td nowrap align="center"><%#Convert.ToInt32(Eval("Status").ToString()) == 1 ? "现行" : "已销假" %>
					</tr>
				</ItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litLeave" runat="server"></asp:Literal>
			<br>
			<!------------------------------------- 出差记录 ------------------------------->
			<table border="0" width="100%" cellspacing="0" cellpadding="3" class="small">
				<tr>
					<td class="Big"><img src="/images/menu/attendance.gif" align="absMiddle"><span class="big3"> 出差记录</span><br>
					</td>
				</tr>
			</table>
			<asp:Repeater id="rptEvection" runat="server">
				<HeaderTemplate>
					<table border="0" cellspacing="1" width="100%" class="small" bgcolor="#000000" cellpadding="3"
						align="center">
						<tr class="TableHeader">
							<td nowrap align="center">出差地点</td>
							<td nowrap align="center">开始日期</td>
							<td nowrap align="center">结束日期</td>
							<td nowrap align="center">审批人员</td>
							<td nowrap align="center">状态</td>
						</tr>
				</HeaderTemplate>
				<ItemTemplate>
					<tr class="TableData">
						<td nowrap align="center"><%#Eval("EvectionDest")%></td>
						<td nowrap align="center"><%#Convert.ToDateTime(Eval("EvectionDate1").ToString()).ToString("yyyy-MM-dd")%></td>
						<td nowrap align="center"><%#Convert.ToDateTime(Eval("EvectionDate2").ToString()).ToString("yyyy-MM-dd")%></td>
						<td nowrap align="center"><%#Eval("UserName")%></td>
						<td nowrap align="center"><%#Convert.ToInt32(Eval("Status").ToString()) == 0 ? "在外" : "归来" %>
					</tr>
				</ItemTemplate>
				<FooterTemplate>
					</table>
				</FooterTemplate>
			</asp:Repeater>
			<asp:Literal id="litEvection" runat="server"></asp:Literal>
			<br>
			<div align="center">
				<input type="button" value="返回" class="BigButton" onClick="location='user.aspx?user_id=<%=ViewState["UserId"]%>';">
			</div>
		</form>		
	</body>
</HTML>
